import request from "@/utils/request";
const flupStrategy = "/flupStrategy";

// 查询策略列表
export function getListFlupStrategy(data) {
  return request({
    url: `${flupStrategy}/listFlupStrategy`,
    method: "post",
    data: data,
  });
}
// 新增策略
export function inserFlupStrategy(data) {
  return request({
    url: `${flupStrategy}/inserFlupStrategy`,
    method: "post",
    data: data,
  });
}
// 修改策略
export function updateFlupStrategy(data) {
  return request({
    url: `${flupStrategy}/updateFlupStrategy`,
    method: "post",
    data: data,
  });
}
// 删除策略
export function deleteFlupStrategy(data) {
  return request({
    url: `${flupStrategy}/deleteFlupStrategy`,
    method: "post",
    data: data,
  });
}
// // 导入变量
// export const importData = `${code}/importData`;

// // 导入变量模板
// export const exportDataTemplate = `${code}/exportDataTemplate`;

// 导出策略数据
// export const exportData = `${flupStrategy}/exportData`;
export function exportData(data) {
  return request({
    url: `${flupStrategy}/exportData`,
    method: "post",
    data: data,
    responseType: "blob",
  });
}
